<?php echo form_open('admin/add_user'); ?>
<label>Password</label><input type="text" name="pass"/><br/>
<label>Akses</label>
<select name="akses">
    <?php foreach ($ak as $er) : ?>
        <option value="<?php echo $er->id; ?>"><?php echo $er->akses; ?></option>
    <?php endforeach; ?>
</select><br/>
<label>Nama</label><input type="text" name="nama"/><br/>
<label>Email</label><input type="text" name="email"/><br/>
<label>Phone</label><input type="text" name="phone"/><br/>
<label>Kelas</label>
<select name="kelas">
    <?php foreach ($ls as $ks) : ?>
        <option value="<?php echo $ks->id; ?>"><?php echo $ks->kelas; ?></option>
    <?php endforeach; ?>
</select>
<label>Tahun masuk</label>
<select name="tahun">
    <?php foreach ($th as $hn) : ?>
        <option value="<?php echo $hn->id; ?>"><?php echo $hn->thn; ?></option>
    <?php endforeach; ?>
</select>
<label>Tempat lahir</label><input type="text" name="tmpt"/><br/>
<label>Tanggal lahir</label><input type="text" name="tgl"/><br/>
<label>Jenis kelamin</label>
<select name="sex">
        <option value="Laki-laki">Laki-laki</option>
        <option value="Perempuan">Perempuan</option>
</select>
<label>Foto</label><input type="text" name="foto"/><br/>
<?php echo form_submit('submit', 'Add'); ?>
<?php echo form_close(); ?>
